using FC.BCVP.NET8.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FC.BCVP.NET8.IService
{
    public interface IBaseService<TEntity,Tvo> where TEntity : class
    {
        Task<long> Add(TEntity entity);
        Task<List<long>> AddSplit(TEntity entity);
        Task<List<Tvo>> Query();
        Task<List<TEntity>> QuerySplit(System.Linq.Expressions.Expression<Func<TEntity, bool>> whereExpression, string orderByFields = null);
    }
}
